package com.imut.iot;

import java.util.Vector;

public class Queue {
	
	private Vector vect;
	
	public Queue() {
		this.vect = new Vector();
	}
	
	
	public void push(Object o) {
		this.vect.add(o);
		
	}
	
	
	public Object pop() {
		if(!this.vect.isEmpty()) {
			Object o = this.vect.firstElement();
			this.vect.remove(0);
			
			return o;
		}
		
		return null;
		
		
	}
	

}
